// kX Driver / kX Driver Interface / kX Driver Effects Library
// Copyright (c) Eugene Gavrilov, Max Mikhailov, and Hanz, 2002-2004.
// All rights reserved

/*
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */

// 10kX microcode
// Patch name: 'AutoWah'

char *autowah_copyright="Copyright 1997 E-mu Systems/Creative Technology, Ltd.";
char *autowah_engine="EMU10K1_A0";
char *autowah_comment="DLLed by Hanz";
char *autowah_created="Fri Jul 13 12:59:04 2001 ";
char *autowah_guid="441a09a0-3d0b-11d6-a4c7-8fae6d701845";

char *autowah_name="APS AutoWah";
int autowah_itramsize=0,autowah_xtramsize=0;

dsp_register_info autowah_info[]={
	{ "in0",0x4000,0x7,0xffff,0x0 },
	{ "in1",0x4001,0x7,0xffff,0x0 },
	{ "out0",0x8000,0x8,0xffff,0x0 },
	{ "out1",0x8001,0x8,0xffff,0x0 },
	{ "sti8002",0x8002,0x1,0xffff,0x1f },
	{ "dyn8003",0x8003,0x1,0xffff,0x828f5c29 },
	{ "dyn8004",0x8004,0x1,0xffff,0x7ef9db21 },
	{ "dyn8005",0x8005,0x1,0xffff,0x7eb851ea },
	{ "dyn8006",0x8006,0x1,0xffff,0x7eb851ea },
	{ "dyn8007",0x8007,0x1,0xffff,0x7eb851ea },
	{ "dyn8008",0x8008,0x1,0xffff,0x0 },
	{ "dyn8009",0x8009,0x1,0xffff,0x0 },
	{ "dyn800a",0x800a,0x1,0xffff,0x0 },
	{ "dyn800b",0x800b,0x1,0xffff,0x0 },
	{ "dyn800c",0x800c,0x1,0xffff,0x0 },
	{ "tmp800d",0x800d,0x3,0xffff,0x0 },
	{ "tmp800e",0x800e,0x3,0xffff,0x0 },
	{ "tmp800f",0x800f,0x3,0xffff,0x0 },
	{ "tmp8010",0x8010,0x3,0xffff,0x0 },
	{ "a",0x8011,0x3,0xffff,0x0 },
	{ "b",0x8012,0x3,0xffff,0x0 },
};

dsp_code autowah_code[]={
	{ 0x0,0x8011,0x2040,0x4000,0x204b },
	{ 0x0,0x8012,0x2040,0x4001,0x204b },
	{ 0x1,0x800f,0x8011,0x8012,0x204e },
	{ 0x4,0x800f,0x2040,0x800f,0x2044 },
	{ 0x9,0x800f,0x800f,0x800f,0x2040 },
	{ 0x9,0x8010,0x800f,0x8005,0x8008 },
	{ 0xa,0x8010,0x2040,0x8006,0x8010 },
	{ 0xe,0x8008,0x800f,0x8010,0x8008 },
	{ 0xd,0x800d,0x8008,0x2043,0x2040 },
	{ 0x0,0x800d,0x8003,0x800d,0x8007 },
	{ 0x0,0x800e,0x204f,0x800d,0x8004 },
	{ 0x0,0x800f,0x2040,0x8011,0x800e },
	{ 0x1,0x800f,0x800f,0x800a,0x8004 },
	{ 0x1,0x800f,0x800f,0x8009,0x800d },
	{ 0x0,0x800a,0x8009,0x800f,0x800d },
	{ 0x0,0x8009,0x800f,0x2040,0x2040 },
	{ 0x4,0x8000,0x2040,0x800f,0x2045 },
	{ 0x0,0x800f,0x2040,0x8012,0x800e },
	{ 0x1,0x800f,0x800f,0x800c,0x8004 },
	{ 0x1,0x800f,0x800f,0x800b,0x800d },
	{ 0x0,0x800c,0x800b,0x800f,0x800d },
	{ 0x0,0x800b,0x800f,0x2040,0x2040 },
	{ 0x4,0x8001,0x2040,0x800f,0x2045 },
};

#define _BASE_CENT_FREQ	0x8003
#define _BANDWIDTH		0x8004
#define _ATT_TIME		0x8005
#define _REL_TIME		0x8006
#define _RANGE			0x8007
